package com.yc.task.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@Component
public class AliapyTradeQueryTask {


    @XxlJob("alpayTradeQuery")
    public ReturnT<String> alpayTradeQuery(String param) throws Exception {

        System.out.println("----------alpayTradeQuery------------");

        //1.调用yc-pay 的获取支付中的数据。返回lisy。 List

        List<String> list = new ArrayList<String>();

        ExecutorService exec = Executors.newFixedThreadPool(6);



        //2.循环调用前置服务。中，交易查询接口
        for (int i =0;i<list.size();i++){



        }




        //3.拿到前置服务的结果，更新支付流水。


        return ReturnT.SUCCESS;

    }
}
